<h1 class="page-header">门店信息</h1>
<form class="form-horizontal" name="form" role="form" ng-controller="storeFormCtrl">
    <div class="col-md-6">
    <div class="form-group">

            <label class="control-label col-md-2">门店名称</label>

            <div class="col-md-6">
                <input type="text" class="form-control" name="storeName" ng-model="store.name"/>
            </div>

    </div>

    <div class="form-group">

            <label class="control-label col-md-2">联系方式</label>

            <div class="col-md-6">
                <input type="text" class="form-control" name="storePhone" ng-model="store.phone"/>
            </div>

    </div>

    <div class="form-group">

            <label class="control-label col-md-2">所属省份</label>

            <div class="col-md-6">
                <!--<input type="text" class="form-control" name="storeProvince" ng-model="store.province"/>-->
                <place province url="/uj-admin/area/"></place>
            </div>

    </div>

    <div class="form-group">

            <label class="control-label col-md-2">所属城市</label>

            <div class="col-md-6">
                <place city></place>
            </div>

    </div>

    <div class="form-group">

            <label class="control-label col-md-2">所属县级市或区</label>

            <div class="col-md-6">
                <place county></place>
            </div>



    </div>

    <div class="form-group">

            <label class="control-label col-md-2">详细地址</label>

            <div class="col-md-6">
                <input type="text" class="form-control" name="storeAddress" ng-model="store.address"/>
            </div>

    </div>

    <div class="form-group">

            <label class="control-label col-md-2">门店介绍</label>

            <div class="col-md-6">
                <textarea rows="10" class="form-control" name="storeDescription" ng-model="store.description"/>
            </div>

    </div>


    </div>

    <div class="col-md-6">
        <div class="form-group">
        <label class="control-label col-md-2">门店地图</label>

        <div class="col-md-6">
            <div id="container"
                 style="
                   width: 600px;
                   height: 450px;

                   border: 1px solid gray;
                   overflow:hidden;">
            </div>

        </div>
            </div>

       <!-- <div class="form-group" >
            <label class="control-label col-md-2">X坐标</label>
            <div class="col-md-6">
            <input type="text" id="storeX" class="form-control" name="storeX" ng-model="store.lng"/>
                </div>
            </div>
        <div class="form-group" >
            <label class="control-label col-md-2">Y坐标</label>
            <div class="col-md-6">
                <input type="text" class="form-control" name="storeY" ng-model="store.lat"/>
            </div>

        </div>-->
        <div class="form-group" >
            <label class="control-label col-md-2"></label>
            <div class="col-md-3">
                <a class="btn btn-success" ng-click="searchByStationName();">获取门店地址坐标</a>
            </div>
            <div class="col-md-6">
                <div class="alert alert-danger" style="padding: 6px 15px; text-align: center; ">
                     点击左侧按钮获取位置
                </div>
                <div class="alert alert-success" style="padding: 6px 15px; text-align: center;  display: none;">
                    成功获取位置
                </div>
            </div>
        </div>


</div>
        </div>


    </div>

    <div class="form-group">
        <div class="col-md-offset-5 col-md-12">
            <a class="btn btn-success" ng-click="save();" ng-disabled="form.$invalid">保存</a>
            <a class="btn btn-primary" ui-sref="index.storeMng">关闭</a>
        </div>
    </div>

</form>

